package com.zjc.yohoshop.mvp.contract;

import com.zjc.lib_core.mvp.model.IModel;
import com.zjc.lib_core.mvp.view.IView;
import com.zjc.yohoshop.bean.AddCarEntity;
import com.zjc.yohoshop.bean.BaseEntity;
import com.zjc.yohoshop.bean.CarListEntity;
import com.zjc.yohoshop.bean.CollectionEntity;
import com.zjc.yohoshop.bean.SelGoodsValuesEntity;

import java.util.Map;

import io.reactivex.Observable;

public interface CarListFragmentContract {

    interface CarListFragmentIView extends IView{
        void carListSuccess(CarListEntity entity);
        void SelGoodsValuesSuccess(SelGoodsValuesEntity entity);
        void AddCarSuccess(AddCarEntity entity);
        void CollectionSuccess(CollectionEntity entity);
    }

    interface CarListFragmentIModel extends IModel{
        Observable<BaseEntity> request(Map<String, String> map);
        Observable<AddCarEntity> AddCarValues(String request);
        Observable<CollectionEntity> CollectionValues(String request);
    }

}
